//演示%s scanf格式字符
#include "stdio.h"

int main(int argc, char const *argv[])
{
  char s1[81], s2[81], s3[81];
  printf("Enter text:\n");
  scanf("%s%s%s", s1, s2, s3);
  printf("\ns1 = %s\ns2 = %s\ns3 = %s\n", s1, s2, s3);
  return 0;
}

// smartown@Smartown:~/Develop/Projects/C/git/ProgrammingInC/9_string$ ./a.out
// Enter text:
// hello world c
//
// s1 = hello
// s2 = world
// s3 = c
// smartown@Smartown:~/Develop/Projects/C/git/ProgrammingInC/9_string$ ./a.out
// Enter text:
// hello world
// programming is fun
//
// s1 = hello
// s2 = world
// s3 = programming
